package com.sgb.merchant.view.adapter;

import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.link.entity.merchant.DemandListEntity;
import com.sgb.merchant.BR;
import com.sgb.merchant.R;

import java.util.List;

public class DemandListAdapter extends BaseQuickAdapter<DemandListEntity, BaseViewHolder> {
    public DemandListAdapter(@Nullable @org.jetbrains.annotations.Nullable List<DemandListEntity> data) {
        super(R.layout.merchant_item_investment_demand,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DemandListEntity item) {
        ViewDataBinding binding = DataBindingUtil.bind(helper.itemView);
       binding.setVariable(BR.viewModel,item);

    }
}
